package com.ymtms.applicationsystem.pojo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
public class Emp {

    private Integer eiid;

    @NotBlank(message = "职员编号不能为空")
    private String employeeCode;

    @NotBlank(message = "职员姓名不能为空")
    private String employeeName;

    @NotBlank(message = "职员部门不能为空")
    private String department;

    @NotBlank(message = "职员职位不能为空")
    private String position;

    @NotBlank(message = "职员性别不能为空")
    @Pattern(regexp="^['男'|'女']$")
    private String gender;

    @NotNull(message = "日期不能为空!")
    @Past(message = "你只能输入过去的日期")
    private Date birthday;

    @NotBlank(message = "职员状态不能为空")
    private String state;

    private Integer flag;


}